<?php

namespace app\api\controller;

use app\api\extend\Common;
use think\facade\Filesystem;
use think\exception\ValidateException;

class Utils extends Common
{
    public function upload() {
        $file = $this->request->file('file');
        $res = $this->uploadFile($file);
        if (empty($res)) return  $this->return_msg(400,'文件上传失败');
        return $this->return_msg(200,'获取成功',$res);
    }

}